Directional object detection

ABSTRACT

Video analytics is used to track an object of interest represented in video data representing the field of view of a scene observed by a video camera. A multidimensional virtual beam is used to detect whether the tracked object of interest is continually present in a detection zone within the field view of the scene. An occurrence of an event is signaled when the tracked object of interest is continually present in the detection zone during a period beginning when the tracked object of interest enters the detection zone and ending when the tracked object of interest leaves the detection zone through the opposite side, after having completely crossed through the detection zone. Use of a virtual beam detection zone reduces false alarms as compared to the numbers of incidences of false alarms of traditional detection methods, while adding several features and benefits.

CROSS REFERENCE TO RELATED APPLICATION

This application claims benefit under 35 U.S.C. §119(e) of U.S. patentapplication Ser. No. 13/678,273 filed Nov. 15, 2012, entitledMULTI-DIMENSIONAL VIRTUAL BEAM DETECTION FOR VIDEO ANALYTICS, which isincorporated by reference herein in its entirety.

COPYRIGHT NOTICE

© 2012 VideoiQ, Inc. A portion of the disclosure of this patent documentcontains material that is subject to copyright protection. The copyrightowner has no objection to the facsimile reproduction by anyone of thepatent document or the patent disclosure, as it appears in the Patentand Trademark Office patent file or records, but otherwise reserves allcopyright rights whatsoever. 37 CFR §1.71(d).

TECHNICAL FIELD

This disclosure relates generally to detection of objects using videoanalytics, and, in particular, to either two- or three-dimensionalvirtual beam detection for video analytics.

BACKGROUND

Physical security systems have long used beam detectors for thedetection of people and vehicles. A typical beam detector includes alight source at one end and a light sensor at the opposite end. Forexample, the light source may include one or more infrared LEDs emittinga beam of light toward the light sensor, which is tuned to detect thewavelength of light emitted by the light source. If a person or vehiclebreaks the beam of light propagating between the light source and thelight sensor, the light sensor will detect a drop in the intensity ofthe light reaching the sensor and thereby trigger an alarm. Beamdetectors are prone to false alarms, which can occur, for example, whenan animal or leaf blowing in the wind crosses the beam. The detector canalso be rendered useless, intentionally or by accident, if the lightsource or the light sensor becomes blocked, forcing an attendant tovisit the site to correct the problem. For this reason, more robustsystems use a series of light sources and sensors to create a series ofbeams that all must be tripped before alarm-producing detection occurs.

Video surveillance technology may also be used as part of a physicalsecurity system. For example, a video surveillance camera capturesimages of a scene. The images may be viewed by a human observer, or theimages may be transmitted to a video analytics system for detecting andtracking objects as they move through the field of view of the videocamera. The video analytics system may distinguish between objects ofinterest and objects not of interest. For example, a human being or avehicle may be an object of interest, but an animal or a blowing leafmay be an object not of interest. Video-based surveillance can be atleast partly automated when the video analytics system includes avirtual tripwire or a region of interest (ROI) for triggering an event.

A typical virtual tripwire is a line superimposed over an image capturedby a surveillance camera. An event may be triggered when the videoanalytics system detects an object of interest crossing the virtualtripwire. For example, the surveillance camera is positioned to captureimages of a street in front of a sidewalk. A virtual tripwire may bedrawn across the sidewalk, and an event would be triggered when anobject of interest, such as a person, walks along the sidewalk andcrosses the tripwire.

A typical ROI is defined by an area superimposed over an image capturedby a surveillance camera. An event may be triggered when the videoanalytics system detects an object of interest moving within the area.Alternatively, an event may be triggered when the video analytics systemdetects an object of interest entering or leaving the area.

However, virtual tripwires and ROIs are prone to false alarms. Oneinstance of a false alarm would be, for example, the triggering of anevent when even a small portion of an object of interest crosses atripwire or enters an ROI. Because a typical tripwire does not have athree-dimensional shape, the exact location covered by the tripwire maynot always be clear. For example, a tripwire drawn across a sidewalk mayappear to be on the sidewalk, but depending on the viewpoint of thecamera, a person walking near the sidewalk or across the street maytrigger an event if the person's head, rather than the person's feet,crosses the tripwire.

ROIs may create false alarms when used to detect people entering orleaving a doorway, because anyone walking by the front of the doorway,without passing through the doorway, may trigger an event. As anotherexample, an ROI sized to count cars on a highway may produce falsealarms caused by tree branches, shadows, headlights, or animals movinginto or within the ROI. Detecting objects moving in a specific directionmay also be more difficult when using an ROI for triggering an event,especially if the object wanders around and does not follow a straightpath.

Moreover, the detection zone of a virtual tripwire or an ROI is static.In other words, the virtual tripwire or the ROI does not move once auser of the video surveillance system defines the tripwire or the ROI.

SUMMARY

The disclosed preferred embodiments implement methods and systems forreducing false alarms when monitoring whether an object of interest ispassing through a detection zone within a field of view of a sceneobserved by a video camera.

According to one embodiment, video data representing the field of viewof the scene observed by the video camera are received. Video analyticsis used to track the object of interest represented in the video data. Amulti-dimensional virtual beam is used to detect whether the trackedobject of interest is continually present in the detection zone. Anoccurrence of an event is signaled when the tracked object of interestis continually present in the detection zone during a period beginningwhen the tracked object of interest enters the detection zone and endingwhen the tracked object of interest leaves the detection zone throughthe opposite side, after having completely crossed through the detectionzone.

The multi-dimensional virtual beam may represent a two-dimensional areaor a three-dimensional volume. For example, a two-dimensional virtualbeam may correspond to an area superimposed over an image represented bythe video data. As another example, a three-dimensional virtual beam maycorrespond to a volume of space oriented in a three-dimensionalrepresentation of the scene observed by the video camera.

Additional aspects and advantages will be apparent from the followingdetailed description of preferred embodiments, which proceeds withreference to the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of one embodiment of a video surveillancesystem.

FIG. 2 is a schematic diagram of one embodiment of a three-dimensionalvirtual beam.

FIG. 3 is a pictorial diagram illustrating one embodiment of athree-dimensional virtual beam in a scene within a field of view of avideo camera.

FIG. 4 is a schematic diagram of one embodiment of a two-dimensionalvirtual beam.

FIG. 5 is a flowchart of a method of monitoring whether an object ofinterest is passing through a detection zone within a field of view of avideo camera, according to one embodiment.

FIG. 6 is a flowchart of a method of monitoring whether one or moreobjects of interest are located in a detection zone within a field ofview of a video camera, according to one embodiment.

FIG. 7 is a pictorial diagrammatic view of one embodiment of a virtualbeam associated with an object of interest.

FIG. 8 is a flowchart of a method of monitoring whether a first objectof interest is passing through a detection zone that is within a fieldof view of a video camera and is associated with a second object ofinterest, according to one embodiment.

FIG. 9 is a flowchart of a method of configuring a virtual beam,according to one embodiment.

DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

The disclosed preferred embodiments implement methods and systems forreducing false alarms when monitoring whether an object of interest ispassing through a detection zone within a field of view of a sceneobserved by a video camera. The object of interest may be tracked todetermine whether the tracked object of interest is continually presentin the detection zone as the tracked object of interest crosses from oneside of the detection zone to the other side of the detection zone. Inone example, the detection zone may be observed by a video surveillancesystem including video analytics and a virtual beam. The virtual beamcan be used to define opposite sides of the detection zone. For example,the virtual beam can be drawn on a computer screen over the visual imagerendered from video data generated by a surveillance camera to definethe area of detection, similar to the way an ROI is drawn. However, avirtual beam can be drawn as a two-dimensional or three dimensionalspace.

FIG. 1 illustrates a block diagram of one embodiment of a videosurveillance system 100, which includes a camera 110, mass storage 120,a computer system 130, an output device 150, and an input device 160.Video surveillance system 100 may include an interconnection network 170for connecting camera 110, mass storage 120, and computer system 130 toone another. As used herein, the term “connected” means logically orphysically connected directly or indirectly through one or moreintermediaries. Interconnection network 170 facilitates wired orwireless communication among camera 110, mass storage 120, and computersystem 130. For example, interconnection network 170 may include theInternet, Ethernet, Universal Serial Bus (USB), asynchronous transfermode (ATM), Packet over SONET/SDH (POS), Peripheral ComponentInterconnect Express (PCI-Express), IEEE 802.11 (Wi-Fi), cellulartelephone network, or other interconnect that is capable of providing acommunication pathway among came a 110, mass storage 120, and computersystem 130.

Camera 110 includes an imaging system for capturing images of a sceneobserved by camera 110. Camera 110 may be a video camera generatingvideo data representing the field of view of the scene observed by thevideo camera. In one example, camera 110 may be a video camera asdescribed in commonly owned U.S. Patent Application Pub. No.2009/0219387, titled “Intelligent High Resolution Video System.” Camera110 may have a fixed field of view or a variable field of view. A camerawith a variable field of view may be of a pan-tilt-zoom (PTZ) typehaving mechanically driven optics to zoom-in on objects, for example.The field of view of the camera includes a detection zone or an area tobe monitored. For example, the detection zone may include a secured areawhere entry is restricted, or the detection zone may include an arealeading to a cashier in a store where the length of a check-out line maybe monitored.

Camera 110 may capture images in the visible light spectrum or in anyother spectrum suitable for monitoring the detection zone. For example,images may be captured in color, black and white, or infrared. Further,metadata and data from multiple spectra may be embedded with the videodata. For example, audible signals may be recorded and included with thevideo data. As another example, time-stamp, position, type of objectdetected, or other metadata may be embedded with the video data. Camera110 may capture a single view or multiple views of a scene, such as instereo vision, for example.

The video data may be formatted as an analog or digital signal, and thevideo data may be encrypted or compressed. For example, the video datamay be encoded in the NTSC/PAL, MPEG-4 SVC, H.264, or any other formatsuitable for recording time sequenced images. Camera 110 may beprogrammable and capable of producing multiple quality levels of videodata, including higher quality (HiQ) video data and lower quality (LowQ)video data. A quality level refers to multiple video parametersincluding resolution, frame rate, bit rate, and compression quality. Forexample, HiQ video data may represent high definition 1080p resolutionvideo recorded at 30 frames-per-second (fps), and LowQ video data mayrepresent D1 resolution video recorded at 5 fps. HiQ and LowQ video dataare not limited to the parameters above. HiQ video data may representhigh definition 1080p resolution video recorded at a lower framerate—for example, 15 fps. In general, HiQ video data are video data thatrepresent higher quality video than that of LowQ video data. Camera 110may produce more than two quality levels of video data. Camera 110 maybe capable of producing different quality levels for different portionsof a field of view within a video frame. For example, camera 110 maygenerate HiQ quality video data representing an object of interest, e.g.a person, in the field of view while simultaneously generating LowQvideo data representing background scene images of the field of view. Asdescribed further herein, video analytics 132 is used to differentiatebetween objects of interest and background images of the field of view.

Mass storage 120 is used for recording video data from camera 110. Massstorage 120 may also be used for storing metadata associated with thevideo data, rules used by video surveillance system 100, andintermediate data, such as during compression and decompression of thevideo data. Mass storage 120 may be hierarchical. For example, massstorage 120 may include a hard disk drive housed with camera 110 and avideo server connected by means of a local area network (LAN) or a widearea network (WAN). Mass storage 120 may include semiconductor memory,an optical storage device, a magnetic storage device, such as a harddisk drive, or any combination of them. The amount of storage capacitymay be determined based on at least the desired time to retain videodata, the resolution of the video data, the compression of the videodata, and the number of cameras writing to mass storage 120. Forexample, a typical camera can generate approximately 0.4 GB of videodata each day when images are captured with CIF resolution at 5 fps andare compressed with H.264 compression. As another example, a typicalcamera can generate approximately 5.4 GB of video data each day whenimages are captured with 01 resolution at 15 fps and are compressed withMPEG-4 compression.

Computer system 130 receives video data and includes video analytics 132and virtual beam 140 modules. Computer system 130 may be integrated inthe same housing as camera 110, remote from camera 110, or distributedacross network 170. Video data may be received by an input/output (I/O)interface 138, for example. Video analytics 132 and virtual beam 140modules may be implemented in hardware, software, or combinations ofthem. For example, computer-executable instructions for implementingvirtual beam 140 may be stored in local storage 134 and executed byprocessor 136. Processor 136 may include a Freescale Semiconductor®i.MX27 multimedia applications processor or a Texas Instruments DaVinci™DM6437 processor, for example. As another example, virtual beam 140 maybe implemented in a field programmable gate array (FPGA) or applicationspecific integrated circuit (ASIC). Local storage 134 may include asemiconductor memory, a magnetic storage device, an optical storagedevice, or any combination of them. Semiconductor memory may includeread only memory (ROM) programmable ROM, random access memory (RAM), orflash memory. A magnetic storage device may include a floppy disk drive,a hard disk drive, a magnetic drum, a magnetic tape, or amagneto-optical disk. An optical storage device may include compact discor holographic memory.

Computer system 130 communicates with output device 150. Output device150 may include a display, an audible or visual alarm, a pager, acellular telephone, a land line telephone, or other device capable ofdisplaying video data or alerting an attendant when an object ofinterest is passing through the detection zone. For example, video datafrom camera 110 may be streamed by I/O interface 138 to output device150, such as a video display. As another example, a text message may besent to output device 150, such as a cellular telephone, when videoanalytics module 132 detects a tracked object of interest that iscontinually present in the detection zone as the tracked object ofinterest crosses through the detection zone in a predefined direction.

Computer system 130 communicates with an input device 160. Input device160 may include a keyboard, a pointing device, such as a mouse or atouch screen, a microphone, a cellular telephone, a land line telephone,or other device capable of allowing a user to provide input to computersystem 130. For example, input device 160 may be a keyboard, and a usermay send a command or setup information to computer system 130 by typingon the keyboard. As a second example, input device 160 may be a mouse,and a user may indicate a boundary of the detection zone by using themouse to drag a cursor along the boundary over an image of the sceneobserved by camera 110. As a third example, input device 160 may be asensor or an external arming signal that could be used by rules todetermine an event of interest. One implementation would be use of analarm system signal for the purpose of indicating the system is armedalso for the purpose of arming the virtual beam detection rule.

Computer system 130 includes video analytics 132. Video analytics 132analyzes the video data generated by camera 110 to detect whether apredefined event or object of interest is being captured by camera 110.A preferred embodiment of video analytics 132 is described in commonlyowned U.S. Patent Application Pub. No. 2009/0245573, titled “ObjectMatching for Tracking, Indexing, and Search.” The video data analyzed byvideo analytics 132 is preferably HiQ video data. Video analytics 132generates metadata that describe the content of video data. The metadataproduced by video analytics 132 may be a textual and semanticdescription of the content of the video.

Events and objects of interest may be programmed by a user and specifiedin an XML definitions file. The definitions file and video analytics 132may be updated periodically. Video analytics 132 may include multipleanalytic capabilities. Multiple events of interest may be defined, andmore than one event of interest may occur at a particular time. Also,the nonoccurrence of one event leaves open the possibility of anoccurrence of a second event. The metadata may be supplied for storagein local storage 134 and mass storage 120. The metadata representing anarbitrary frame n can be associated with video data representing framen. Thus, the metadata may be searchable to allow a user to efficientlysearch and semantically browse large video archives, whether storedlocally or remotely.

An event of interest that video analytics 132 detects may be as simpleas motion in the field of view. Video analytics 132 may also implementblob detection (e.g., detecting a group of moving pixels as a potentialmoving object, without identifying what type of object it is), lightingchange adjustment, and geometric calibration based on object size in thefield of view to distinguish objects based on types. For example, videoanalytics 132 may be able to classify an object as a human being, avehicle, or another type of object and be able to recognize an objectwhen it appears in any portion within the field of view of camera 110.Furthermore, video analytics 132 may be able to recognize certainidentifiable features of an object such as, for example, human faces andvehicle license plates. Video analytics 132 may be able to recognizewhen camera 110 is capturing a new object and assign a unique object IDto the new object. Video analytics 132 may be able to recognize thespeed and trajectory at which an object moves. Video analytics 132 maybe able to recognize events such as perimeter intrusion, object movementin a particular direction, objects approaching one another, a number ofobjects located in a specified area, objects left behind, and objectremoval. Video analytics 132 can also recognize specific locations, orcoordinates, within the field of view where an event or object ofinterest is being captured, or a combination of objects and events, asdefined by a rule.

When video analytics 132 detects an event or object of interest withinthe video data, video analytics 132 generates metadata that correspondto the event or object of interest and supplies the metadata to rulesbased engine 142. Rules based engine 142 includes rules that associateevents or objects of interest, specified in the metadata, to specificactions to be taken. The actions associated with the rules may be toperform, for example, one or more of the following: signaling an eventwhen a tracked object of interest is continually present in thedetection zone during a period beginning when the tracked object ofinterest enters a detection zone and ending when the tracked object ofinterest leaves the detection zone through the opposite side, afterhaving completely crossed through the detection zone; signaling an eventwhen a number of objects of interest crossing the detection zone andcontinually present in the detection zone exceeds a threshold number;signaling an event when a first object of interest is continuallypresent in a detection zone, the detection zone associated with a secondobject of interest, as the first object of interest crosses thedetection zone; store HiQ or LowQ video data in local storage 134; storeHiQ or LowQ video data in remote mass storage 120; stream HiQ or LowQvideo data from output device 150 to a user; generate and send fromoutput device 150 to a user a short video clip file of the event ofinterest; send an alert (e.g., instructions to generate one or both of avisual display and an audible sound) from output device 150 to a user;store video data in mass storage 120 for X period of time. For example,a user may define the following rule: when a human being crosses adetection zone from one side to the other side, store in local storage134 HiQ video data representing the intrusion, provide to a user by anoutput device 150 such as a pager an alert of the intrusion, generate ashort video clip of the intrusion and send the video clip to outputdevice 150 such as a display, and store in remote mass storage 120 HiQvideo data representing the intrusion. Or, a user may define thefollowing rule: when no event or object of interest is being captured,store in local storage 134 LowQ video data and send no video data tooutput device 150. Because video analytics 132 can detect variousobjects and events, a wide variety of rules may be defined by a user.Also, because multiple events of interest may occur simultaneously, arule may correspond to a combination of events.

An application of counting objects crossing the detection zone andgenerating reports from object count data can provide traffic flowpattern information. For example, placement of virtual beams at criticallocations in a retail store enables determination of customer trafficflow throughout the store. A report can be generated to show customertraffic patterns based on time of day, seasons of year, or comparison oftraffic flow among multiple store locations.

A rule may use a multi-dimensional virtual beam 140 for reducing falsealarms when monitoring whether an object of interest is passing throughthe detection zone. Virtual beam 140 is used to define boundaries of thedetection zone within the field of view of the scene observed by camera110. Virtual beam 140 includes an entrance side and an exit side onopposite boundaries of the detection zone. Virtual beam 140 detectswhether an object of interest is continually present in the detectionzone as the object enters the entrance side of, crosses completelythrough, and leaves through the exit side of the detection zone. Objectsentering the detection zone from any side other than the entrance sidewill be ignored. Objects that appear or disappear within the detectionzone, or move only within the detection zone, will also be ignored.

Virtual beam 140 may be associated with one or more objects. As oneexample, a type of object to be detected may be configured duringdetection rules setup, such as by choosing from a drop-down computermenu. Virtual beam 140 may be set to detect general types of objects,such as people, vehicles, or boats. Virtual beam 140 may be set todetect more specific types of objects, such as school buses, firetrucks, red sedans, people riding bicycles, adults, or non-guards. Asanother example, and as further elaborated in FIGS. 7 and 8, virtualbeam 140 may be associated with an object of interest.

Virtual beam 140 is multi-dimensional and can be defined as atwo-dimensional or three dimensional space. FIG. 2 is a schematicdiagram of one embodiment of a three-dimensional virtual beam, and FIG.3 is a pictorial diagram illustrating how a three-dimensional virtualbeam may be overlaid with a three-dimensional representation of a scenewithin a field of view of a video camera. FIG. 4 is a schematic diagramof one embodiment of a two-dimensional virtual beam.

A virtual beam can act as a four-dimensional beam by inclusion of ameasure of time elapsed in crossing the virtual beam. An example issetting as a detection rule a speed limit of travel of an object throughthe virtual beam. This can be accomplished by establishing a timeallowed for an object to pass through the virtual beam of known distancebetween its entrance and exit sides. An object taking too much or toolittle time to cross the virtual beam could trigger an event ofinterest.

FIG. 2 illustrates one embodiment of a three-dimensional virtual beam200 that defines a detection zone that includes an entrance side 210 andan exit side 220 located on the opposite side of the detection zone. Asillustrated in FIG. 2, entrance side 210 and exit side 220 are theborders of the detection zone, which has a rectangular shape and isarranged in parallel planes, but other shapes and arrangements arepossible. For example, a virtual beam zone of detection may be definedas an annulus, i.e., a ring with thickness. Generally, the detectionarea of a three-dimensional virtual beam may be planar, curved, orinclude one or more linear borders.

Virtual beam 200 exhibits an inherent direction of motion because eventsare detected when a tracked object of interest is continually present inthe detection zone, after the tracked object of interest enters entranceside 210 of the detection zone, thereafter crosses through the detectionzone, and leaves completely the detection zone from exit side 220,thereby triggering detection. In other words, a direction of virtualbeam 200 may be defined by an object entering through entrance side 210and triggering detection when the object crosses through the detectionzone and leaves completely through exit side 220. Virtual beam 200 mayalso ignore objects entering or leaving through other sides of thedetection zone, such as sides 230 and 240. Objects entering or leavingthe detection zone through sides 230 and 240 will be ignored. Onevirtual beam is used to detect an object crossing a detection zone in asingle direction. Multiple virtual beams may be used to detect an objectcrossing a detection one in multiple directions. For example, twovirtual beams defining the same detection zone, but swapping theentrance and exit sides, may be set up to detect traffic going in twodirections.

A distance 250 between entrance side 210 and exit side 220 may be variedto customize a false alarm immunity versus a sensitivity of detection.Distance 250 may be lengthened to widen virtual beam 200 and to reducefalse alarms. In other words, distance 250 may be lengthened to increasefalse alarm immunity. Distance 250 may be shortened to narrow virtualbeam 200 and increase sensitivity of detection.

Virtual beam 200 may be aligned with a spatial location within athree-dimensional representation of the scene observed by camera 110.The three-dimensional representation may be created manually, such as bya user or an installer providing a physical mapping of the backgroundscene to rules based engine 142. For example, a ground plane 260 of thevisual scene may be manually entered by use of input device 160. In analternative embodiment, video analytics 132 can automatically observeand analyze traffic, such as people and vehicles in various areas of thescene, to generate a ground plane model, including the angle of theground plane. The three-dimensional representation of the scene mayinclude a horizon, where ground plane 260 appears to intersect the skyfrom the field of view of camera 110. Similar to the ground plane, thehorizon may be manually entered or automatically detected by operationof video analytics 132.

Distance 250 may be shortened or lengthened, depending on how far thedetection zone is from camera 110 or how close the detection zone is tocamera 110. For example, an area closer to the horizon in the videoscene is typically farther away than areas farther from and below thehorizon. Thus, it may be desirable to have a wider virtual beam forareas closer to camera 110 compared to areas farther from camera 110,since each pixel located near the horizon may represent more distancetraveled than each pixel located farther from and below the horizonwould represent. Similarly, a height 270 of the detection zone may beincreased or reduced depending on how far away from or close to thedetection zone is from camera 110. For example, it may be desirable toincrease height 270 as the detection zone is positioned closer to camera110 to provide similar false alarm immunity as that provided by adetection zone positioned farther from camera 110.

Virtual beam 200 may include a detection zone having a border coincidentwith ground-plane 260 or above ground-plane 260, such as at height 280.FIG. 3 illustrates how a three-dimensional virtual beam 300 may beoverlaid on a three-dimensional representation of a scene 310 within afield of view of a video camera. FIG. 3 shows a suburban car lot with asidewalk 320 proximal to one side of which several cars 340 are parkedside by side and proximal to the other side of which a street 300 runsparallel. Virtual beam 300 includes a detection zone with a boundarycoincident with a ground plane located on the surface of sidewalk 320.Virtual beam 300 includes detection sides 302 and 304 and is preferablyconfigured to detect only the feet and lower portions of the legs of ahuman being as an object of interest. If detection side 302 is theentrance side and detection side 304 is the exit side, virtual beam 300can detect people walking along sidewalk 320 from right to left. Ifdetection side 304 is the entrance side and detection side 302 is theexit side, virtual beam 300 can detect people walking along sidewalk 320from left to right. In this manner, the movement of people along thesidewalk can be monitored with high false alarm immunity. For example,people walking on the street, in front of sidewalk 320, will be ignoredwhen their heads rather than their feet pass through virtual beam 300.As used with reference to FIG. 3, “in front of’ means closer to camera110.

As an alternative to mapping a three-dimensional representation of thescene, a two-dimensional virtual beam may be used as an overlay on animage represented by video data. For example, a three-dimensionalrepresentation of a scene may not be available because a user has notmanually entered a physical mapping of the background scene or videoanalytics 132 has not completed calibrating the scene. As anotherexample, a two-dimensional virtual beam may be implemented with fewercomputational resources than those used in implementing athree-dimensional virtual beam. Skilled persons will appreciate that thedimensions of a scene and the dimensions of a virtual beam are separateand distinct. A three-dimensional virtual beam need not be used with athree-dimensional representation of a scene. A two-dimensional beam can,therefore, be located in a three-dimensional representation of a scene.Moreover, a three-dimensional virtual beam can be implemented by atwo-dimensional beam and a rule specifying the height of an object.

FIG. 4 illustrates one embodiment of a two-dimensional virtual beam 400overlaid on an image 410 represented by video data from camera 110.Virtual beam 400 can be used to define the entrance and exit sides of adetection zone 420. For example, virtual beam 400 may include anentrance side 430 bounding detection zone 420 on one side and an exitside 440 bounding detection zone 420 on the opposite side. Virtual beam400 may include one or more sides 450 where the entrance or exit ofobjects is ignored. Virtual beam 400 includes a distance 460 betweenentrance side 430 and exit side 440. Increasing distance 460 may reducefalse alarms, and decreasing distance 460 may increase sensitivity ofdetection. Although the two-dimensional virtual beam 400 illustrated inFIG. 4 is a parallelogram and entrance side 430 and exit side 440 areparallel to each other, other shapes and arrangements are possible. Forexample, an entrance side may be defined as the outer border of a ringwith thickness, and an exit side may be defined as an inner border ofthe ring contained within the perimeter of the outer border. Generally,the entrance and exit sides of a two-dimensional virtual beam may belinear, curved, or include one or more linear border segments.

A multi-dimensional virtual beam can be used to implement methods tomonitor an object of interest in a detection zone within a field of viewof a video camera. FIG. 5 illustrates an embodiment of a method ofmonitoring whether the object of interest is passing through thedetection zone. FIG. 6 illustrates an embodiment of a method ofmonitoring whether more than a threshold number of objects of interestare located in the detection zone. FIG. 8 illustrates an embodiment of amethod of monitoring whether a first object of interest is passingthrough the detection zone when the detection zone is associated with asecond object of interest, such as illustrated in FIG. 7, for example.Common to all of the methods are: receiving video data (510); usingvideo analytics to track one or more objects (such as 520, 620, and820); using a virtual beam to detect whether an object is continuallypresent in the detection zone (such as 530, 630, and 840); signaling anevent based on whether one or more objects are continually present inthe detection zone combined with one or more other conditions (such as540, 640, and 850); and optionally performing additional steps based onthe occurrence of the event (550). Finally, FIG. 9 illustrates a methodof configuring a virtual beam that may be used in the methodsillustrated in FIGS. 5, 6, and 8.

FIG. 5 is a flowchart of a method 500 of monitoring whether an object ofinterest is passing through a detection zone within a field of view of avideo camera, according to one embodiment. Method 500 may beimplemented, for example, by video surveillance system 100. Method 500begins at 510 by receiving video data. The video data may be received inreal-time, such as from camera 110, or delayed from when the video datawere recorded. Real-time data may be delayed by computations orbuffering within video surveillance system 100. For example, real-timedata may be delayed by encoding, decoding, compressing, decompressing,packetizing, or other system delays. As another example, video data fromcamera 110 may be recorded at mass storage 120 or local storage 134,stored for a time, and then retrieved at a later time forpost-processing by method 500.

At 520, video analytics 132 are used to track the object of interestrepresented in the video data. An object of interest may be trackedbased on one or more criteria, including criteria corresponding tocharacteristics of the object and criteria that may be unrelated to theobject. For example, the object of interest may be tracked based on oneor more combinations of the type, color, shape, size, or speed of motionof the object. In a preferred embodiment, video analytics 132 canrecognize or identify an object, such as with blob detection technologyor advanced video motion detection, so that the object may be moreaccurately tracked. Video analytics 132 may assign an object type to anidentified object, and rules can be set up to determine whether theidentified object is of a type that will be tracked. For example, objecttypes may include human beings, vehicles, animals, or of suspicious orunknown type. In an alternative embodiment, an object of interest may betracked based on pixel mot on, such as by recognizing pixel changesmoving across a scene, without identifying the object.

The speed of motion of an object may be used to determine whether theobject is to be detected as an even of interest. For example, videoanalytics 132 may detect a speed associated with a moving object, andrules can be set up to determine a range of speeds for objects that willtrigger an alarm. For example, a speeding car may be considered to be anevent of interest, or a slow-moving car, such as a car caught in atraffic jam, may be an event of interest, but cars moving at normalspeeds may be ignored. As another example, a person walking slowlythrough a parking lot or a person running through a hallway may be anevent of interest, but people walking at normal speeds may not be eventsof interest. The motion or trajectory of an object may be used todetermine whether it is an event of interest. For example, an object maybe considered to be of interest based on whether the object has a smoothor a chaotic trajectory, whether the object is stationary or moving, orwhether the object exhibits abnormal activity.

The color of an object may be used to determine whether the object isconsidered to be of interest. For example, a red sedan could beconsidered to be of interest and cars of different colors could beignored. Tracking objects of a given color may be used to aid policeofficers when they are looking for a car with a known color, such asduring an Amber alert or when a car has been reported stolen. Similarly,the shape of car, which may correspond to a make and model of the car,may be used to determine whether the car is considered to be ofinterest. As another example, employees or guards may have uniforms ofone color and people wearing a different color may be considered to beof interest for certain types of activities, such as entering intoemployee-only areas.

Colors corresponding to temperatures may be used to determine whether anobject is considered to be of interest. In one embodiment, a thermalcamera may generate different colors corresponding to differenttemperatures. In an alternative embodiment, a thermal camera maygenerate black and white images, with the intensity of the whitecorresponding to different temperatures. A threshold color or intensitymay be set, and when the color or intensity of the object exceeds thethreshold, the object can be identified as an object of interest. Oneapplication in which tracking objects based on color from a thermalcamera may be desirable is the monitoring of electrical substations. Forexample, the spread of unwanted heat in substation equipment may betracked to provide an early warning of occurrences and potentiallyreduce the expense of system failures.

A tracked object of interest may be part of another object of interest.Examples of objects that may be part of another object include a licenseplate of a vehicle or a face, arm, or head of a person. Tracking alicense plate can be useful when combined with a license platerecognition system. Similarly, tracking a face can be useful whencombined with a facial recognition system. Tracking a part of an objectmay improve the accuracy of tracking. For example, tracking heads may bemore accurate than tracking full bodies, especially when a full view ofthe bodies may be obscured by obstacles or heavy traffic, such as in anairport or a train terminal.

Furthermore, rules not associated with an object may be set up todetermine whether an object should be considered to be an object ofinterest. Examples of rules not associated with an object includeambient light level, time of day, occurrences of earlier events, orcombinations of them. For example, a rule can be set up so that vehiclesare considered to be of interest in a parking lot only if the parkinglot lights are turned off. As another example, a rule can be set up sothat people are considered to be of interest only between the hours of10:00 p.m. and 6:00 a.m.

Video analytics 132 may associate metadata with a tracked object ofinterest. Examples of metadata include object type, color, speed,trajectory, an identifier label, bounding box coordinates, event data,and any other information that may describe an aspect of the object. Theidentifier label may be created by video analytics 132 when the objectof interest is first identified. The identifier label may persistbetween video frames until the object of interest moves out of the fieldof view of camera 110. Bounding box coordinates may identify a boundaryaround the object of interest in a video frame or in a three-dimensionalrepresentation of the scene observed by video camera 110. For example,bounding box coordinates may be a set of (X, Y) pixel coordinatescorresponding to the edges of the object of interest in a video frame.Bounding box coordinates will move with an object of interest, and thebounding box coordinates may be filtered through a smoothing functionbetween frames to reduce jerkiness. As another example, bounding boxcoordinates may be a set of (X, Y, Z) coordinates corresponding to theboundary of the object of interest in the three-dimensionalrepresentation of the scene observed by video camera 110. Event data mayinclude whether an event occurred or a time-stamp of when an eventoccurred.

At 530, a multi-dimensional virtual beam is used to detect whether thetracked object of interest is continually present in the detection zone.The multi-dimensional virtual beam may be a two-dimensional virtualbeam, such as virtual beam 400; or the virtual beam may be athree-dimensional virtual beam, such as virtual beam 200. In oneembodiment, an object is “continually” present in the detection zonewhen the object is present in the detection zone in every video frameduring the period of interest. In an alternative embodiment, a filtermay be applied such that the object is “continually” present in thedetection zone even if the object is absent from the detection zone fora small number of video frames, such as one or two video frames. Byusing a filter, anomalies resulting from video decompression or jerkyupdates of a bounding box may be reduced.

The presence of an object in the detection zone may be determined indifferent ways. In one embodiment, the object is “present” in thedetection zone when a bounding box associated with the object intersectsor is contained within the detection zone. In an alternative embodiment,the object is “present” in the detection zone when a center of thebounding box associated with the object intersects or is containedwithin the detection zone. In yet another embodiment, the object is“present” in the detection zone when any pixel of the object intersectsor is contained within the detection zone.

When an object is first present in the detection zone, metadata, such asan entry time-stamp, may be created and associated with the object.Similarly, an exit time-stamp may be created and associated with theobject when the object exits the detection zone. In one embodiment, theentry and exit time-stamps of the object may be compared to time-stampsmarking the time during which the object is present in the detectionzone to determine whether the object is continually present in thedetection zone.

At 540, rules-based criteria are used to define an event of interest.Criteria may include, for example, time of day or week, speed of object,color of object, type of object, and multiple objects simultaneouslycrossing the virtual beam. Another criterion may be establishing as thevirtual beam an annulus surrounding an object of interest.

At 550, an event is signaled when the tracked object of interest iscontinually present in the detection zone during a period beginning whenthe tracked object of interest enters through the entrance side of thevirtual beam and ending when the tracked object of interest crossesthrough the detection zone and leaves through the exit side of thevirtual beam. Examples of rules for determining when the object entersthrough an entrance side include: (1) when a bounding box associatedwith the object first enters the detection zone through the entranceside, (2) when a center of the bounding box associated with the objectenters the detection zone through the entrance side, (3) when any pixelof the object enters the detection zone through the entrance side, and(4) when a bounding box associated with the object enters the detectionzone through the complete height of the detection zone (forthree-dimensional virtual beams). The rules for determining when theobject enters or leaves the detection zone may be different. The rulesfor determining when the object enters or leaves the detection zone mayvary the sensitivity and false alarm immunity for the detection zonecrossing. For example, rule (1) would likely be more sensitive thanwould rule (2) for detecting an object entering a detection zone, e.g.,rule (1) would detect entry of an object into a detection zone soonerthan would rule (2), but rule (1) might result in more false alarms thanwould rule (2).

At 560, additional steps may be optionally performed based on theoccurrence of an event, such as the event signaled at 550. Examples ofthe additional steps include alerting an attendant, recording a videoclip, adjusting a recording quality level, sending an email, sounding anaudible alarm, generating metadata, or logging a report. An attendantmay be alerted by operation of output device 150, such as by sounding anaudible alarm, sending a text or recorded voice message to theattendant's phone, or highlighting a video clip on the attendant'sdisplay. A video clip may be recorded at local storage 134 or massstorage 120, for example.

Method 500 may be used in a variety of applications. For example, thesteps of method 500 may be performed with virtual beam 300 to detectpeople walking along sidewalk 320 as described with reference to FIG. 3.Similarly, use of a virtual beam in the performance of method 500 maydetect a person entering a property area with no physical barriers, suchas a schoolyard that adjoins a wooded area.

Method 500 may be used for fence beam applications, such as detecting aperson climbing a fence or a cellular telephone tower by having anentrance side of a virtual beam set near the bottom of the structure andan exit side set at a higher point of the structure. The distancebetween the entrance side and the exit side can be used to determine howfar the person must climb before an alarm is triggered. The height ofthe exit side over the entrance side can be used to determine how tallthe person needs to be to create a detection. The distance betweenentrance and exit sides may reduce false alarms caused by tree branchesblowing in the wind, birds landing on the fence, or even small animals,such as squirrels crawling up the fence. In this fence beam application,false alarms caused by passers-by may also be reduced, since peoplecrossing only from the entrance side to the exit side will generate analarm.

Method 500 may be used for a virtual corridor application, such as for aone-way exit at an airport or a museum. The distance between entranceand exit sides or depth of the virtual beam can be used to establish howfar people must travel in one direction before being detected.Increasing the depth may reduce false alarms caused by people stoppingto momentarily turn around before exiting. For example, movementsopposite to the direction of the exit might be caused by a personturning around to wave goodbye to someone, stepping backwards for amoment, or deciding not to leave. The height of the virtual beam canalso be set to just detect the heads of people and thereby may behelpful in crowded areas where it may be difficult for the camera to seefull body views.

Method 500 may be used for a virtual doorway application, in which theheight of the virtual beam determines how tall a person needs to be fordetection. For example, the virtual beam can be set across the entranceto a shopping mall. By selecting the height of the virtual beam, thesystem can count only adults, not children. Alternatively, the height ofthe virtual beam can be set to detect children, so that video analytics132 can determine which adults are near the children when they enter.The system can later create an alert, if one of those children leavesunaccompanied by one of the adults with whom the child entered. Thus,method 500 may provide a method of providing early warning of potentialchild abduction.

FIG. 6 is a flowchart of a method 600 of monitoring whether one or moreobjects of interest are located in a detection zone within a field ofview of a video camera, according to one embodiment. Method 600 may beimplemented, for example, by video surveillance system 100. Method 600begins at 510 by receiving video data.

At 620, video analytics 132 are used to track the one or more objects ofinterest represented by the video data. Video analytics 132distinguishes one or more objects of interest so that the number ofobjects of interest can be counted at 630. In one embodiment, videoanalytics 132 assigns a unique identifier label to each object. Anobject of interest may be tracked based on one or more criteria,including criteria corresponding to characteristics of the object andcriteria unrelated to the object. Video analytics 132 may associatemetadata, such as the identifier label and bounding box coordinates,with each tracked object of interest.

At 630, a multi-dimensional virtual beam is used to count the number ofobjects of interest that have entered the detection zone by crossing theentrance side and are continually present in the detection zone at aboutthe same time. The multi-dimensional virtual beam may be atwo-dimensional virtual beam, such as virtual beam 400, or athree-dimensional virtual beam, such as virtual beam 200. Whether anobject enters the detection zone by entering through the entrance sidemay be determined according to the rules described at 550. The continualpresence of one or more objects of interest in the detection zone may bedetermined in a manner as described at 530. In one embodiment, thenumber of objects of interest that are continually present in thedetection zone may be counted by counting the number of objects havingunique identifier labels continually present in the detection zone.

At 640, an event is signaled when the number of objects of interestentering through the entrance side and continually present in thedetection zone at about the same time, and crossing through thedetection zone and leaving through the exit side, exceeds a thresholdnumber. The threshold number may be preconfigured by a user, such aswith method 900 (FIG. 9), for example. Furthermore, video analytics 132may adjust the threshold number based on one or more conditions detectedby video analytics 132. Finally, at 560, additional steps may beoptionally performed based on the occurrence of an event, such as theevent signaled at 640.

Method 600 may be used for a virtual corridor application, such as infront of a cashier or service counter. For example, method 600 may beused to detect the length of a queue of people waiting in line. Theheight of the virtual beam can be set to determine how tall people needto be for detection. For example, the height can be set to detect peopleover 4 feet tall to ignore children waiting with their parents, as wellas to ignore shopping carts. The threshold number of people can be setbased on a store policy for a desirable number of people standing inline. When the desirable number is exceeded, an alert can be generatedand additional service personnel can be requested to open anothercheckout counter.

The virtual corridor application may be modified to account for a storepolicy of a desirable waiting time in line. For example, a line may beshort and slow, such as when a cashier is delayed with a problemcustomer. The threshold for the number of people in line may be reducedbased on the length of time elapsed after the last person left throughthe exit side of the virtual beam. Thus, the threshold number of peoplemay drop as the speed of the line slows. In an alternative embodiment, atimer is started when a person enters the virtual beam through theentrance side and the timer is stopped when the person leaves thevirtual beam through the exit side. If the person has not left thedetection zone after a predefined time, an alert can then be generated.

FIG. 7 is a pictorial diagrammatic view of one embodiment of amulti-dimensional virtual beam 700 associated with an object of interest710, such as an automobile. In one embodiment, virtual beam 700 isassociated with the position of object of interest 710 so that virtualbeam 700 moves with object of interest 710. Thus, virtual beam 700 canbe set up to define an area around object of interest 710. Virtual beam700 of annular shape includes an inner side 720 and an outer side 730.Outer side 730 is farther from object of interest 710 than is inner side720. Objects can be detected leaving object of interest 710 when innerside 720 is the entrance side of virtual beam 700 and outer side 730 isthe exit side of virtual beam 700. Alternatively, objects can bedetected approaching or entering object of interest 710 when outer side730 is the entrance side of virtual beam 700 and inner side 720 is theexit side of virtual beam 700. False alarm immunity of virtual beam 700may be increased when a distance 740 between inner side 720 and outerside 730 is increased. Sensitivity of virtual beam 700 may be increasedwhen a distance 740 between inner side 720 and outer side 730 isdecreased.

Although virtual beam 700 is illustrated as an annulus, other shapes arepossible. For example, each of the sides may be in the shape of a dome,sphere, box, pyramid, hexagon, or any other shape that completely orpartly surrounds object of interest 710. The shape and center of innerside 720 may be different from the shape and center of outer side 720.However, in a preferred embodiment, inner side 720 is contained withinthe perimeter of outer side 730.

Moreover, although a three-dimensional virtual beam is illustrated inFIG. 7, a two-dimensional virtual beam may also be associated with anobject of interest. For example, the sides may be in the shapes ofconcentric circles. However, the entrance side and the exit side neednot be concentric. The sides may be any other two-dimensional shape thatcompletely or partly surrounds object of interest. In a preferredembodiment, the inner side is contained within the perimeter of theouter side.

FIG. 8 is a flowchart of a method 800 of monitoring whether a firstobject of interest is passing through a detection zone that is within afield of view of a video camera and is associated with a second objectof interest, according to one embodiment. Method BOO may be implemented,for example, by video surveillance system 100. Method BOO begins at 510by receiving video data.

At B20, video analytics 132 are used to track the first object ofinterest in the video data. The first object of interest may be trackedas described at 520, for example.

At B30, a second object of interest represented by the video data anddifferent from the first object of interest is tracked. The secondobject of interest may be tracked with video analytics 132, such as in520 or B20, or may be tracked in other ways. For example, the secondobject of interest may be tracked using radio frequency identification(RFID) or other radio triangulation methods, GPS, or any other method ofdetermining a position of the second object of interest. When thedetection zone is associated with the position of the second object ofinterest, the detection zone will move along with or follow the secondobject of interest as it moves.

At B40, a multi-dimensional virtual beam, such as virtual beam 700, isused to detect whether the first object of interest is continuallypresent in the detection zone as the first object of interest passesthrough the detection zone associated with the second object ofinterest. The multi-dimensional virtual beam includes an entrance sidebounding the detection zone on one side and an exit side bounding thedetection zone on a side opposite the entrance side. In one embodiment,the entrance side is farther from the second object of interest than isthe exit side so that objects approaching the second object of interestcan be detected. In an alternative embodiment, the entrance side iscloser to the second object of interest than is exit side so thatobjects leaving the second object of interest can be detected.

At B50, an event is signaled when the first object of interest iscontinually present in the detection zone during a period beginning whenthe first object of interest enters into the detection zone through theentrance side and ending when the first object of interest leaves thedetection zone through the exit side. Whether an object enters throughan entrance side or leaves through an exit side may be determinedaccording to the rules described at 550.

At 560, additional steps may be optionally performed based on theoccurrence of an event, such as the event signaled at B50. Examples ofthe additional steps include alerting an attendant, recording a videoclip, adjusting a recording quality level, sending an email, sounding anaudible alarm, generating metadata, or logging a report.

Method 800 may be used in a variety of object localized applications. Anobject localized application includes a virtual beam that is associatedwith or localized around an object that may move. As an example, method800 may be used for detecting when people leave their vehicles, or whensomeone walks up to a vehicle. A virtual beam associated with thevehicle can be defined to surround the vehicle, as illustrated in FIG.7. By choosing whether the outer side or the inner side is the entranceside, the virtual beam can distinguish between people approaching avehicle or leaving it. One potential advantage of using a virtual beamas an object localized beam, e.g., a virtual beam associated with anobject, is that the virtual beam can follow the object around which thevirtual beam is localized. For example, if the vehicle moves, thesurrounding virtual beam moves with the vehicle. Or, if the virtual beamis localized around a person, and the person walks into a public park,the virtual beam can provide a detection zone around the person andtriggers an alarm if that person is approached by another person.

As another example, method 800 may be used to create a protection zonearound an airplane parked on an airport tarmac. The zone would be armedand active when the airplane is not in use. If the airplane is moved,the protection zone automatically moves with the airplane.

Method 800 may be used in a hospital setting. For example, a virtualbeam can be localized around a piece of hospital equipment to detect andcreate a video record whenever someone touches the equipment. In oneembodiment, if the equipment is moved, which is quite common inhospitals, then as soon as the equipment is stationary and in the viewof a camera, such as camera 110, the virtual beam surrounding it canagain become active. The localized beam can be configured to detect aperson approaching or leaving the equipment. A detection event can causea video clip to be recorded and stored in local storage 134 or massstorage 120. If the equipment is missing or damaged, then the videorecords associated with the equipment may be searched to find a cause ofthe missing or damaged equipment.

In a preferred embodiment, a hospital surveillance system mayautomatically create virtual beams around all portable equipment in thehospital. For example, the system can search for objects with the sameappearance. This simplifies an effort to find equipment, by firstidentifying when it was last moved, and then looking for other movingobjects of the same appearance, spotted by any of the cameras in thesystem and detected in the same time frame. To increase the speed ofsearch, the system can create real-time metadata records of events, suchas equipment being approached or moved, and the system can store theevent metadata with other metadata about the equipment and theappearance of the people detected. The metadata may be used to target asearch of video data, as compared to searching through all of the videodata. In this manner, search time may be reduced when looking formissing hospital equipment.

A preferred video analytics system can set up a rule to automaticallycreate virtual beams around objects of a certain type, such as vehicles,when they enter a parking lot. For example, the system can automaticallytrigger an event after a vehicle parks and a person leaves the vehicle.If that person then approaches another parked vehicle, the videoanalytics system can identify potentially suspicious activity. If thevehicle in which that person arrived is driven away, and that personthereafter approaches parked vehicles, a preferred system can treat thisbehavior as suspicious and alert guards.

A preferred video analytics system can use virtual beams as part of anoverall behavior detection process. For example, a video analyticssystem can set up a rule to automatically create virtual beams aroundobjects of a certain type, such as vehicles, when they enter a parkinglot. The system can automatically set up a first virtual beam around anarriving car. An event can be triggered after the vehicle parks andsomeone leaves the car, crossing through the first virtual beam. If thatsame person, tracked by video analytics, then approaches another parkedvehicle surrounded by a second virtual beam, the video analytics systemcan identify potentially suspicious activity. If the car in which thatperson arrived is driven away and that person thereafter approachesparked vehicles, the system can treat this behavior as suspicious andalert security guards. The video analytics can also detect a situationin which that person enters and starts a parked car that then begins tomove from its parking space. In this manner, repeatable patterns ofbehavior practiced by criminals may be automatically detected by a videoanalytics system. By detecting suspicious activity in real time,security guards may be given valuable early warning to close automaticgate openings to prevent the thieves from leaving. Alternatively, thesecurity guards can potentially operate a PTZ camera to 25 zoom in toidentify license plates and get close-up pictures of those involved, andsend this information to the police, for capture and arrest.

FIG. 9 is a flowchart of a method 900 of configuring a multi-dimensionalvirtual beam, according to one embodiment. Method 900 may beimplemented, for example, by video surveillance system 100. Method 900begins at 910 by defining a multi-dimensional virtual beam having anentrance side and an exit side bounding the detection zone on oppositesides. In one embodiment, a two-dimensional virtual beam overlaid on avisual image may be defined by pixel coordinates. A three-dimensionalvirtual beam representing a spatial location within a three-dimensionalrepresentation of the scene observed by camera 110 may be defined bycoordinates corresponding to the scene representation. Alternatively, atwo-dimensional virtual beam can be defined to represent areacoordinates in a three-dimensional representation of the scene observedby camera 110.

The entrance and exit sides may be defined, for example, in an XML fileor by a user dragging a cursor along the detection zone boundary over animage of the scene observed by camera 110. As described earlier withreference to FIG. 2, it may be desirable for the distance between thesides to be narrowed or widened depending on how far from or close tothe detection zone is relative to camera 110. In a preferred embodiment,video analytics 132 may recommend narrower beams for areas farther fromcamera 110 and wider beams for areas closer to camera 110. In oneembodiment, a virtual beam for a virtual corridor or virtual doorway maybe defined in two dimensions, and a user may separately select a size ofthe object to be detected. Video analytics 132, for example, mayautomatically determine the average size of adults present in a regionof the scene and automatically offer the user an option in a drop-downmenu to choose between adults and children. Similarly, vehicles may bespecified in meters or feet to detect only big-rig trucks while ignoringsedans, for example. After a detection zone boundary is defined, videoanalytics 132 may provide at its output a graphical representation ofthe boundary over the video image displayed by output device 150. When aground plane is specified, video analytics 132 may shape automaticallythe angles of the detection area to match the angle of the ground plane.

At 920, the multi-dimensional virtual beam defined at 910 can beoptionally associated with an object of interest, a characteristic of anobject, or an object independent rule. For example, the virtual beam maybe associated with a position of an object of interest. In other words,the virtual beam may be defined relative to the position of the objectof interest so the virtual beam can move with the object. As anotherexample, the virtual beam may be associated with a type of object sothat only objects of a predefined type tracked within the boundary ofthe virtual beam will trigger a detection.

At 930, the type of object to be detected can be configured when settingup the detection rules, such as by choosing from a drop-down computermenu. For example, the virtual beam can be set to detect people,vehicles, boats, or more specific types of objects, such as schoolbuses, fire trucks, and bicyclists. Examples of object independent rulesinclude detecting objects at limited times of the day or during areduced set of ambient lighting conditions. At 930, other rules can beadded, such as the length of time allowed for objects to cross thevirtual beam. An object's taking too much time (i.e., is moving tooslow) or too little time (i.e., is moving too fast) to cross the virtualbeam could be considered an event of interest.

At 940, a threshold number of objects of interest may optionally bedefined and associated with the virtual beam, such as when method 600 isto be implemented. The threshold number can be preconfigured by a userand automatically adjusted if various criteria are met.

At 950, method 900 tests whether a threshold number of objects isdefined for the virtual beam. If so, method 900 continues at 960,otherwise, method 900 continues at 970.

At 960, the video analytics system is armed to trigger an event when anumber of objects of interest entering the detection zone through theentrance side of the virtual beam, remaining continually present in thedetection zone, and leaving the detection zone through the exit sideexceeds the threshold number defined at 940. In this manner, the videoanalytics system is armed to implement method 600.

At 970, the video analytics system is armed to trigger an event when theobject of interest is continually present in the detection zone during aperiod beginning when the object of interest enters the detection zonethrough the entrance side of the virtual beam and ending when the objectof interest leaves the detection zone through the exit side of thevirtual beam. In this manner, the video analytics system may be armed toimplement method 500 or method 900.

It will be obvious to those having skill in the art that many changesmay be made to the details of the above-described embodiments withoutdeparting from the underlying principles of the invention. The scope ofthe present invention should, therefore, be determined only by thefollowing claims.

What is claimed is:
 1. A method of monitoring whether an object ofinterest is passing through an area within a field of view of a sceneobserved by a video camera, the method comprising: receiving video datarepresenting the field of view of the scene observed by the videocamera; using video analytics to track an object of interest representedin the video data; configuring a detection zone within the area, thedetection zone having at least two sides; signaling an occurrence of anevent when the tracked object of interest is continually present in thedetection zone during a period beginning when the tracked object ofinterest enters the detection zone on one side and ending when thetracked object of interest leaves the detection zone from a differentside; and determining a direction the tracked object of interesttraveled through the detection zone by determining which side of thedetection zone the tracked object of interest entered and which side ofthe detection zone the tracked object exited.
 2. The method of claim 1,wherein the one side and the different side are positioned opposite toeach other and thereby define opposite sides of the detection zone. 3.The method of claim 1, wherein the detection zone corresponds to avolume superimposed on a two-dimensional image represented by the videodata.
 4. The method of claim 1, wherein the detection zone correspondsto a volume of space oriented in a three-dimensional representation ofthe scene observed by the video camera.
 5. The method of claim 1,wherein the signaling of an occurrence of an event is performed for anobject of interest exhibiting a specified physical characteristic. 6.The method of claim 5, wherein the physical characteristic comprises atleast one of a color of the object of interest, a shape of the object ofinterest, or a size of the object of interest.
 7. The method of claim 5,wherein the physical characteristic is a speed of motion of the objectof interest.
 8. The method of claim 5, wherein the physicalcharacteristic is a height of the object of interest.
 9. The method ofclaim 5, wherein the detection zone corresponds to a volume of space andthereby defines a virtual beam detection zone that is superimposed on animage represented by the video data, and wherein the physicalcharacteristic is a height of the object of interest within the virtualbeam detection zone.
 10. The method of claim 5, wherein the detectionzone corresponds to a volume of space and thereby defines a virtual beamdetection zone that is superimposed on an image represented by the videodata, and wherein the height of the object of interest is capable ofbeing configured by a height value set by a user.
 11. The method ofclaim 1, wherein the object of interest is of a specified type.
 12. Themethod of claim 1, wherein the object of interest is one of a number ofobjects of interest, and wherein the signaling of an occurrence of anevent is performed upon determination of a specified number of trackedobjects of interest.
 13. The method of claim 1, further comprisingmonitoring passage of time, and wherein the signaling of an occurrenceof an event is performed after detection of a specified period of timeelapsed from a time the object of interest entered through the one sideand left through the different side of the detection zone.
 14. Themethod of claim 1, further comprising monitoring an output signal of anexternal sensor, and wherein the signaling of an occurrence of an eventis performed upon indication of a predetermined value of the outputsignal of the external sensor.
 15. The method of claim 1, wherein theobject of interest is one of multiple objects of interest, and furthercomprising performing a count of the multiple objects of interest. 16.The method of claim 15, wherein the count of the multiple objects ofinterest is based on the determined direction of each of the multipleobjects of interest.
 17. The method of claim 15, wherein the count ofthe multiple objects of interest is based on the determined direction ofeach of the multiple objects of interest, in which the multiple objectsof interest are people present in a retail establishment, and furthercomprising using the count of people to monitor retail establishmentcustomer traffic patterns.
 18. The method of claim 15, wherein the countof the multiple objects of interest is based on the determined directionof each of the multiple objects of interest, in which the multipleobjects of interest are vehicles present in a specified region ofvehicle travel, and further comprising using the count of vehicles tomonitor vehicle traffic patterns in the specified region.
 19. The methodof claim 1, further comprising assigning the detection zone to followthe tracked object of interest as it moves at least within the field ofview of the scene observed by the video camera.
 20. The method of claim19, wherein the scene observed by the video camera is a vehicle parkingsite and the tracked object of interest is a vehicle.
 21. The method ofclaim 19, wherein the scene observed by the video camera is a hospitalfacility and the tracked object of interest is a person or hospitalequipment.
 22. The method of claim 1, wherein the object of interest isof a specified type, and further comprising automatically assigning thedetection zone to encompass the specified object of interest when itappears in the field of view of the scene observed by the video camera.23. The method of claim 1, wherein the video data representing theobject of interest correspond to image pixels, and wherein the videoanalytics determines whether the object of interest enters or leaves thedetection zone by determining whether an image pixel representing theobject of interest is present in the detection zone.
 24. The method ofclaim 23, wherein the image pixel is centrally located within the objectof interest.
 25. The method of claim 1, wherein the video datarepresenting the object of interest correspond to at least one imagepixel contained within a bounding box, and wherein the video analyticsdetermines whether the object of interest enters or leaves the detectionzone by determining whether an edge of the bounding box is present inthe detection zone.
 26. The method of claim 1, wherein one side or thedifferent side of the detection zone is configured to be a certaindistance from a ground reference to enable detection of a particularportion of the object of interest.
 27. The method of claim 1, furthercomprising; configuring a second detection zone, the second detectionzone including a third side and a fourth side; and signaling anoccurrence of a second event when the tracked object of interest oranother tracked object of interest is continually present in thedetection zone during a second period beginning when the tracked objectof interest or the another tracked object of interest enters thedetection zone on the third side or fourth side and ending when thetracked object of interest or the another tracked object of interestleaves the detection zone from the third side or fourth side.
 28. Themethod of claim 27, wherein the third side comprises the one side, andwherein the fourth side comprises the different side.
 29. The method ofclaim 1, wherein configuring the detection zone further comprisesreceiving a selection of a distance been the one side and the differentside, wherein the distance corresponds to a sensitivity of detection.30. A video surveillance system, comprising: at least one video cameraconfigured to monitor whether an object of interest is passing through adetection zone within a field of view of a scene observed by the atleast one video; a computer system connected to the at least one videocamera, and wherein the computer system further comprises: a memory; anda processor, wherein the memory comprises instructions, that whenexecuted by the processor, cause the processor to: receive video datarepresenting the field of view of the scene observed by the at least onevideo camera; track an object of interest represented in the video datausing video analytics; configure the detection zone to include a firstside and a second side positioned opposite to each other and therebydefining opposite sides of the detection zone; and signal an occurrenceof an event when the tracked object of interest is continually presentin the detection zone during a period beginning when the tracked objectof interest enters the detection zone on the first side or the secondside and ending when the tracked object of interest leaves the detectionzone from the opposite side; and determining a direction the trackedobject of interest traveled through the detection zone by determiningwhich side of the detection zone the tracked object of interest enteredand which side of the detection zone the tracked object of interestexited.
 31. The video surveillance system of claim 30, wherein the atleast one video camera and the computer are integrated.
 32. Anon-transitory computer readable medium storing instruction, that whenexecuted by a processor, cause the processor to perform the operationsof: receiving video data representing a field of view of a sceneobserved by a video camera; using video analytics to track an objectrepresented in the video data; configuring a detection zone within thefield of view including a first side and a second side positionedopposite to each other and thereby defining opposite sides of thedetection zone; signaling an occurrence of an event when the trackedobject is continually present in the detection zone during a periodbeginning when the tracked object enters the detection zone on the firstside or the second side and ending when the tracked object leaves thedetection zone from the opposite side; and determining a direction thetracked object traveled through the detection zone by determining whichside of the detection zone the tracked object entered and which side ofthe detection zone the tracked object exited.